<?php
require_once './libs/Smarty.class.php';

define('APPLICATION_PATH', str_replace("\\", "/", realpath(dirname(__FILE__))));

class MySmarty extends Smarty
{
	public $my_template_dir;
	public $my_compile_dir;
	public $my_cache_dir;
	
	function __construct()
	{
		parent::__construct();
		
		$this->my_template_dir= APPLICATION_PATH.'/templates/';
		$this->my_compile_dir = APPLICATION_PATH.'/templates_c/';
		$this->my_cache_dir   = APPLICATION_PATH.'/cache/'; 
		$this->left_delimiter = '<{';
		$this->right_delimiter='}>';
		$this->setDir();
		
	}
	function setDir()
	{
		$this->template_dir = $this->my_template_dir;
		$this->cache_dir    = $this->my_cache_dir;
		$this->compile_dir  = $this->my_compile_dir;
		$this->caching=false;
	}
}
?>